﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using SACM.BusinessEntity;

namespace SACM.Services
{
    public class DoctorService : IDoctorService
    {
        public void Save(Doctor obj)
        {
            try
            {
                new BusinessComponent.DoctorService().Save(obj);
            }
            catch (Exception ex)
            {
                throw new ApplicationException(ex.Message);
            }
        }

        public void Delete(Doctor obj)
        {
            try
            {
                new BusinessComponent.DoctorService().Delete(obj);
            }
            catch (Exception ex)
            {
                throw new ApplicationException(ex.Message);
            }
        }
    }
}
